package br.ufba.model.percistencia.jdbc.conexao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {


	public Connection getConnection() {
		String jdbcURL = "jdbc:mysql://localhost:3306/sigea";
		String nome = "root";
		String senha = "root";
		
		try {
			System.out.println("Conectando ao banco");
			return DriverManager.getConnection(jdbcURL, nome, senha);
		} catch(SQLException e) {
			throw new RuntimeException(e);
		}
	}
}
